﻿#!/usr/bin/env python
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp import template

class Kwai(webapp.RequestHandler):
  def get(self):

    #self.response.header['Content-Type'] = 'text/plain'
    self.response.out.write("hello, world!")
  def post(self):
    self.response.out.write("shit")
    
class Controller:
  def action(self):
    
class View:
  def loadtemplate():
    template_path = os.path.join(os.path.dirname(__file__), 'template.html')

  def renderHTML(template_path, view_data):
    print 'Content-Type: text/html; charset=utf-8'
    print template.render(template_path, view_data)
  
  
  
def main():
  application = webapp.WSGIApplication([
    ('/', Kwai),
    ], debug = True)
  util.run_wsgi_app(application)

if __name__ == '__main__':
  main()